Optimal. Leaf size=47 \[ \frac {2 b \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )}{c}+x \left (a+b \sin ^{-1}(c x)\right )^2-2 b^2 x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 47, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {4619, 4677, 8} \[ \frac {2 b \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )}{c}+x \left (a+b \sin ^{-1}(c x)\right )^2-2 b^2 x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 4619
Rule 4677
Rubi steps
\begin {align*} \int \left (a+b \sin ^{-1}(c x)\right )^2 \, dx &=x \left (a+b \sin ^{-1}(c x)\right )^2-(2 b c) \int \frac {x \left (a+b \sin ^{-1}(c x)\right )}{\sqrt {1-c^2 x^2}} \, dx\\ &=\frac {2 b \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )}{c}+x \left (a+b \sin ^{-1}(c x)\right )^2-\left (2 b^2\right ) \int 1 \, dx\\ &=-2 b^2 x+\frac {2 b \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )}{c}+x \left (a+b \sin ^{-1}(c x)\right )^2\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 47, normalized size = 1.00 \[ \frac {2 b \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )}{c}+x \left (a+b \sin ^{-1}(c x)\right )^2-2 b^2 x \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.40, size = 65, normalized size = 1.38 \[ \frac {b^{2} c x \arcsin \left (c x\right )^{2} + 2 \, a b c x \arcsin \left (c x\right ) + {\left (a^{2} - 2 \, b^{2}\right )} c x + 2 \, \sqrt {-c^{2} x^{2} + 1} {\left (b^{2} \arcsin \left (c x\right ) + a b\right )}}{c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.40, size = 75, normalized size = 1.60 \[ b^{2} x \arcsin \left (c x\right )^{2} + 2 \, a b x \arcsin \left (c x\right ) + a^{2} x - 2 \, b^{2} x + \frac {2 \, \sqrt {-c^{2} x^{2} + 1} b^{2} \arcsin \left (c x\right )}{c} + \frac {2 \, \sqrt {-c^{2} x^{2} + 1} a b}{c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 72, normalized size = 1.53 \[ \frac {c x \,a^{2}+b^{2} \left (c x \arcsin \left (c x \right )^{2}-2 c x +2 \arcsin \left (c x \right ) \sqrt {-c^{2} x^{2}+1}\right )+2 a b \left (c x \arcsin \left (c x \right )+\sqrt {-c^{2} x^{2}+1}\right )}{c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.47, size = 72, normalized size = 1.53 \[ b^{2} x \arcsin \left (c x\right )^{2} - 2 \, b^{2} {\left (x - \frac {\sqrt {-c^{2} x^{2} + 1} \arcsin \left (c x\right )}{c}\right )} + a^{2} x + \frac {2 \, {\left (c x \arcsin \left (c x\right ) + \sqrt {-c^{2} x^{2} + 1}\right )} a b}{c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.35, size = 142, normalized size = 3.02 \[ \left \{\begin {array}{cl} b^2\,\left (x\,\left ({\mathrm {asin}\left (c\,x\right )}^2-2\right )+2\,\mathrm {asin}\left (c\,x\right )\,\sqrt {\frac {1}{c^2}-x^2}\right )+a^2\,x+\frac {2\,a\,b\,\left (\sqrt {1-c^2\,x^2}+c\,x\,\mathrm {asin}\left (c\,x\right )\right )}{c} & \text {\ if\ \ }0<c\\ a^2\,x+b^2\,x\,\left ({\mathrm {asin}\left (c\,x\right )}^2-2\right )+\frac {2\,b^2\,\mathrm {asin}\left (c\,x\right )\,\sqrt {1-c^2\,x^2}}{c}+\frac {2\,a\,b\,\left (\sqrt {1-c^2\,x^2}+c\,x\,\mathrm {asin}\left (c\,x\right )\right )}{c} & \text {\ if\ \ }\neg 0<c \end {array}\right . \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.27, size = 82, normalized size = 1.74 \[ \begin {cases} a^{2} x + 2 a b x \operatorname {asin}{\left (c x \right )} + \frac {2 a b \sqrt {- c^{2} x^{2} + 1}}{c} + b^{2} x \operatorname {asin}^{2}{\left (c x \right )} - 2 b^{2} x + \frac {2 b^{2} \sqrt {- c^{2} x^{2} + 1} \operatorname {asin}{\left (c x \right )}}{c} & \text {for}\: c \neq 0 \\a^{2} x & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________